// 存放公共样式的函数
$(function () {
    // 点击页面检查是否登陆，未登陆时则自动跳转登陆页面
    // 利用本地存储，登陆时已经保存    localStorage.setItem("uid", res);
    // localStorage.setItem("username", username);
    checkLogin();
    function checkLogin() {
        var uid = localStorage.getItem("uid");
        var username = localStorage.getItem("username");
        if (!(uid && username)) {
            location.href = "/login.html";
        }
    }
})
